#include "bullet.h"
#include "TextureManager.h"
#define PI 3.1415926535f
namespace NOEXIT
{
	Bullet::Bullet(PlayerInfo& playerinfo, vec3f& dir)
	{
		vec3f vel = 10 * dir;
		info = new BulletInfo(playerinfo, (float*)&vel);
		pRO = new RenderObject();
		m_pos_mat = Matrix4f::Identity();
	}

	Bullet::Bullet(BulletInfo* binfo)
	{
  		info = new BulletInfo(*binfo);
		pRO = new RenderObject();
		m_pos_mat = Matrix4f::Identity();
	}
	Bullet::~Bullet()
	{
		delete info;
		delete pRO;
	}



}